/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2024-05-15
 * Time：08:50
 */
public class Test {
    public static void main(String[] args) {
        MyStack myStack = new MyStack();
        myStack.push(12);
        myStack.push(23);
        myStack.push(34);
        myStack.push(45);
        System.out.println(myStack.getUsedSize());


        int x = myStack.pop();
        System.out.println(x);
        x = myStack.pop();
        System.out.println(x);
        x = myStack.pop();
        System.out.println(x);
        System.out.println(myStack.peek());
        x = myStack.pop();
        System.out.println(x);
    }
}
